<?php
    require_once('../code/global.php');
    require_once('/code/Admin.php');
    $admin=new Admin();
    $admin->loginCheck(0);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>PhotoFromThe1st 后台管理系统</title>
        <link rel="stylesheet" href="/styles/admin.css" type="text/css" media="all"> 
    </head>
    <body>
        <div id="adminContainer">
            <div id="adminHeader">
                PhotoFromThe1st 后台管理系统 V1.0
            </div>
            <div id="loginBox">
                <?php
                    if(isset($_GET['msg'])) echo '<div class="msgBox">'.$_GET['msg'].'</div>';
                    else echo '<div class="msgBox">管理员登录</div>';
                ?>
                <form name="login" action="../code/exec.php" method="post">
                    <input type="hidden" name="action" value="adminLogin">
                    <table border="0" cellspacing="0" cellpadding="0">
                        <tr><td>帐号：</td><td><input type="text" name="admin"></td></tr>
                        <tr><td>密码：</td><td><input class="pwd" type="password" name="password"></td></tr>
                    </table>
                    <input class="btnCN" type="submit" name="login" value="登录" >
                </form>
            </div>
        </div>
    </body>
</html>